<?php
namespace app\back\model;

use think\Model;

class AccountTickets extends Model
{   
    protected $table = 'account_tickets';


    function getActiveTicket($mobile) {

    	return $this->where('mobile',$mobile)
    			->where('state', '0')
    			->where('expire_date', '>=', date('Y-m-d'))
    			->select();
        
    }
}
